﻿@model ThesisSystem.Models.Teacher

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>添加教师信息</title>
    <link href="@Url.Content("~/Content/CSS/Common.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/CSS/Account.css")" rel="stylesheet" type="text/css" />
</head>
<body>
    <script src="@Url.Content("~/Scripts/jquery-min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    
    @using (Html.BeginForm("TeacherCreateInfo","Account",FormMethod.Post))
    {
        @Html.ValidationSummary(true)
            <table class="tblStudentInfo">
                <tr>
                    <th>@Html.LabelFor(model => model.TeacherID)</th>
                    <td>@Html.EditorFor(model => model.TeacherID)
                @Html.ValidationMessageFor(model => model.TeacherID)</td>
                </tr>
                <tr>
                    <th>@Html.LabelFor(model => model.TeacherName)</th>
                    <td>@Html.EditorFor(model => model.TeacherName)
                @Html.ValidationMessageFor(model => model.TeacherName)</td>
                </tr>
                <tr>
                    <th>@Html.LabelFor(model => model.Sex)</th>
                    <td>@Html.DropDownList("Sex",String.Empty)
                @Html.ValidationMessageFor(model => model.Sex)</td>
                </tr>
                <tr>
                    <th>@Html.LabelFor(model => model.PoliticalLandscape)</th>
                    <td>@Html.EditorFor(model => model.PoliticalLandscape)
                @Html.ValidationMessageFor(model => model.PoliticalLandscape)</td>
                </tr>
                <tr>
                    <th>@Html.LabelFor(model => model.DepartmentID)</th>
                    <td>@Html.DropDownList("DepartmentID",String.Empty)
                    @Html.ValidationMessageFor(model => model.DepartmentID)
                </td>
                </tr>
                <tr>
                    <th>@Html.LabelFor(model => model.Position)</th>
                    <td>@Html.EditorFor(model => model.Position)
                @Html.ValidationMessageFor(model => model.Position)</td>
                </tr>
                <tr>
                    <th>@Html.LabelFor(model => model.Remark)</th>
                    <td>@Html.TextAreaFor(model => model.Remark)
                @Html.ValidationMessageFor(model => model.Remark)</td>
                </tr>
            </table>
    
            <p>
                <input type="submit" value="保存" />
            </p>
    }
</body>
</html>
